import request from '@/utils/request'

// 查询分销记录表列表
export function listDistributionrecord(query) {
  return request({
    url: '/distribution/distributionrecord/list',
    method: 'get',
    params: query
  })
}

// 查询分销记录表详细
export function getDistributionrecord(distributorId) {
  return request({
    url: '/distribution/distributionrecord/' + distributorId,
    method: 'get'
  })
}

// 新增分销记录表
export function addDistributionrecord(data) {
  return request({
    url: '/distribution/distributionrecord',
    method: 'post',
    data: data
  })
}

// 修改分销记录表
export function updateDistributionrecord(data) {
  return request({
    url: '/distribution/distributionrecord',
    method: 'put',
    data: data
  })
}

// 删除分销记录表
export function delDistributionrecord(distributorId) {
  return request({
    url: '/distribution/distributionrecord/' + distributorId,
    method: 'delete'
  })
}
